package com.mcr.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@ApiModel("用户地址类")
public class AddressBook implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("地址id")
    private Long id;
    @ApiModelProperty("收货人id")
    private Long userId;
    @ApiModelProperty("收货人姓名")
    private String consignee;
    @ApiModelProperty("收货人手机号")
    private String phone;
    @ApiModelProperty("收货人性别,0:女;1:男;")
    private String sex;
    @ApiModelProperty("省级区划编号")
    private String provinceCode;
    @ApiModelProperty("省级名称")
    private String provinceName;
    @ApiModelProperty("市级区划编号")
    private String cityCode;
    @ApiModelProperty("市级名称")
    private String cityName;
    @ApiModelProperty("区级区划编号")
    private String districtCode;
    @ApiModelProperty("区级名称")
    private String districtName;
    @ApiModelProperty("详细地址")
    private String detail;
    @ApiModelProperty("标签")
    private String label;
    @ApiModelProperty("是否是默认地址 0 否 1是")
    private Integer isDefault;
    @ApiModelProperty("订单创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("订单更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @ApiModelProperty("订单创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @ApiModelProperty("订单修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
    @ApiModelProperty("订单是否删除")
    private Integer isDeleted;
}
